﻿<%@ Control Language="C#" ClassName="StockOutFields" %>
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <table border="0" cellpadding="3" cellspacing="1">
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataStockOutId" runat="server" Text="Return Good Id:" AssociatedControlID="dataStockOutId" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataStockOutId" Text='<%# Bind("StockOutId") %>' CssClass="text-input"
                        MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataStockOutId"
                            runat="server" Display="Dynamic" ControlToValidate="dataStockOutId" ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataStockOutDate" runat="server" Text="Return Good Date:" AssociatedControlID="dataStockOutDate" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataStockOutDate" Text='<%# Bind("StockOutDate", "{0:dd-MMM-yyyy}") %>' CssClass="text-input datepicker"
                        MaxLength="11"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataStockOutDate"
                            runat="server" Display="Dynamic" ControlToValidate="dataStockOutDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPreparedBy" runat="server" Text="Prepared By:" AssociatedControlID="dataPreparedBy" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataPreparedBy" DataSourceID="PreparedByWebUserDataSource"
                        DataTextField="Name" DataValueField="UserId" SelectedValue='<%# Bind("PreparedBy") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
                    <data:WebUserDataSource ID="PreparedByWebUserDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"></asp:TextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
